﻿@model string[]
           
@{
    ViewBag.Title = "Выберите букву";
}

<h2>Выберите букву</h2>

<ul class="submenu" >
    <li>@Html.ActionLink("Ждут твоего комментария", "List", new { letter = "~" })</li>
</ul>

<ul class="submenu" style="margin-top:15px">
@foreach (var c in Model.Where("0123456789".Contains))
{
    <li>@Html.ActionLink(c.ToString(), "List", new { letter = c })</li>
}
</ul>

<ul class="submenu" style="margin-top:15px">
@foreach (var c in Model.Where("ABCDEFGHIJKLMNOPQRSTUVWXYZ".Contains))
{
    <li>@Html.ActionLink(c.ToString(), "List", new { letter = c })</li>
}
</ul>



<ul class="submenu" style="margin-top:15px">
@foreach (var c in Model.Where(l=>!"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".Contains(l)))
{
    <li>@Html.ActionLink(c.ToString(), "List", new { letter = c })</li>
}
</ul>
